/**
 * BBD Service Inc
 * All Rights Reserved @2018
 */
package com.bbd.merchant.guide.galaxy.strategy;

import com.bbd.merchant.guide.galaxy.core.GuideResponse;
import com.bbd.merchant.guide.galaxy.core.ICommandStrategy;
import org.apache.commons.lang3.StringUtils;

/**
 *
 *
 * @author tianyuliang
 * @version $Id: HowManyCommandStrategy.java, v0.1 2018-08-01 14:22 tianyuliang Exp $$
 */
public class HowManyCommandStrategy implements ICommandStrategy {
    @Override
    public boolean CanExecute(String content) {
        if (StringUtils.isBlank(content)) {
            return false;
        }

        String[] values = content.trim().split("\\s+");
        return values.length == 7 && values[0].equalsIgnoreCase("how") && values[1].equalsIgnoreCase("many");
    }

    @Override
    public GuideResponse Execute(String content) {
        return null;
    }
}
